package com.ruoyi.foodworks.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 评论点赞对象 comments_likes
 * @author ruoyi
 * @date 2025-08-12
 */
public class CommentsLikes extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Integer id;

    /** 点赞用户ID */
    @Excel(name = "点赞用户ID")
    private Integer userId;

    /** 评论ID（关联comments.id） */
    @Excel(name = "评论ID", readConverterExp = "关=联comments.id")
    private Integer commentId;

    /** 是否删除：0正常 1删除 */
    private Integer del;

    /** 点赞用户昵称 */
    private String userNickname;

    /** 评论内容 */
    private String commentContent;

    /** 评论作者昵称 */
    private String commentAuthorNickname;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }

    public void setCommentId(Integer commentId) 
    {
        this.commentId = commentId;
    }

    public Integer getCommentId() 
    {
        return commentId;
    }

    public void setDel(Integer del) 
    {
        this.del = del;
    }

    public Integer getDel() 
    {
        return del;
    }

    public void setUserNickname(String userNickname) 
    {
        this.userNickname = userNickname;
    }

    public String getUserNickname() 
    {
        return userNickname;
    }

    public void setCommentContent(String commentContent) 
    {
        this.commentContent = commentContent;
    }

    public String getCommentContent() 
    {
        return commentContent;
    }

    public void setCommentAuthorNickname(String commentAuthorNickname) 
    {
        this.commentAuthorNickname = commentAuthorNickname;
    }

    public String getCommentAuthorNickname() 
    {
        return commentAuthorNickname;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("userNickname", getUserNickname())
            .append("commentId", getCommentId())
            .append("commentContent", getCommentContent())
            .append("commentAuthorNickname", getCommentAuthorNickname())
            .append("createTime", getCreateTime())
            .append("del", getDel())
            .toString();
    }
}
